package com.ego.user.serivce.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.ego.inter.domain.UserAddress;
import com.ego.inter.service.UserService;

import java.util.ArrayList;
import java.util.List;

/**
 * 对外暴露的服务注意注解的包是阿里巴巴下的。
 * @date 2020/10/12 11:16
 */
@Service
public class UserServiceImpl implements UserService {


    public List<UserAddress> queryAllAddress() {
        UserAddress userAddress = new UserAddress(1,"山东省日照市东港区","吴彦祖");
        UserAddress userAddress1 = new UserAddress(2,"山东省济宁市任城区","吴亦凡");
        List<UserAddress> addresses = new ArrayList<UserAddress>();
        addresses.add(userAddress);
        addresses.add(userAddress1);
        return addresses;
    }
}
